package com.theyeasy.dvmini.util;

import java.util.List;
 

/**
 * 分页返回对象
 * 
 * @author Administrator
 *
 * @param <T>
 */
public class PageResults<T> {
	// 当前页
	private int page;

	// 总页数
	private int total;

	private int pageSize;
    
 
	 
	private String customfiled1;//自定义字段1
    
    public String getCustomfiled1() {
        return customfiled1;
    }


    
    public void setCustomfiled1(String customfiled1) {
        this.customfiled1 = customfiled1;
    }


  
    public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	private int totalPages;

	public int getTotalPages() {
		totalPages = (total + pageSize - 1) / pageSize;
		return totalPages;
	}

	public void setTotalPages(int totalPages) {
		this.totalPages = totalPages;
	}

	// 记录
	private List<T> rows;

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public List<T> getRows() {
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}


	
}
